package IO;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Tester1 {



    public static void main(String[] args) {
        byte[] bs = new byte[10];

        try (FileInputStream fis = new FileInputStream("E:\\a.txt\\b.txt")) {
            byte b =(byte) fis.read();

            fis.read(bs);
            fis.read(bs);
            b = (byte)fis.read();
            b = (byte)fis.read();
            fis.read(bs);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        for (int i = 0; i <bs.length; i++) {
            System.out.println(bs[i]);
        }


    }

}
